package com.example.wuqujingdianphone.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.wuqujingdianphone.R;
import com.example.wuqujingdianphone.bean.AudioListBean;
import com.example.wuqujingdianphone.bean.AudioMoreBean;
import com.example.wuqujingdianphone.bean.TingshuHomeBean;

import java.util.List;

/**
 * Created by yuanpk on 2018/4/9.
 */

public class AudioList11Adapter extends BaseQuickAdapter<AudioMoreBean.ListBean.ModelBean, BaseViewHolder> {

    private Context mContext;

    public AudioList11Adapter(Context context,  List<AudioMoreBean.ListBean.ModelBean> data) {
        super(R.layout.video_list_item, data);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, AudioMoreBean.ListBean.ModelBean item) {


//        Glide.with(mContext)
//                .load(ApiConfig.APP_URL + item.spic)
//                .error(R.drawable.icon_book_cover_defalt)
//                .placeholder(R.drawable.icon_book_cover_defalt)
//                .centerCrop()
//                .into((ImageView) helper.getView(R.id.image));

        helper.setText(R.id.book_name_, item.getTitle());
                /*.setText(R.id.author, "作者：" + item.author)*/

    }
}
